public class NumSign {
    private double num;
    private char sign;

    public NumSign() {
    }

    public NumSign(double num, char sign) {
        this.num = num;
        this.sign = sign;
    }

    public NumSign(String num, char sign) {
        this.num = Double.parseDouble(num);
        this.sign = sign;
    }

    public double getNum() {
        return num;
    }

    public void setNum(double num) {
        this.num = num;
    }

    public char getSign() {
        return sign;
    }

    public void setSign(char sign) {
        this.sign = sign;
    }

    public String getStrNumber()
    {
        return Double.toString(num);
    }

    public void setNumber(String num)
    {
        this.num = Double.parseDouble(num);
    }
}
